<template>
	<view class="note">
		<u-cell-group>
			<u-cell v-for="(item,index) in docList" :key="index" icon="bookmark-fill" :title="item.title" isLink :url="item.path"></u-cell>
		</u-cell-group>
		<tabbar :current="1"></tabbar>
  </view>
</template>

<script>
import tabbar from '@/components/tabbar/index.vue'

import { navigateTo } from '@/static/utils'
export default {
  data() {
    return {
      docList:[
				{title:"TypeScript",path:"/pages/docs/TypeScript/index"},
				{title:"Flutter",path:"/pages/docs/Flutter/index"},
			],
			userInfo:{}
    }
  },
  components:{
    tabbar,
  },
	onLoad() {
		this.getMsg()
	},
  methods: {
		// 点击确认红包按钮事件
    onConfirm() {},

		// 关闭红包时触发
		onClose(){},

		// 开启红包时触发
		onCover(){},
		getMsg(){
				const db = uniCloud.database()//创建数据库连接
				db.collection("user").get()//获取数据表的信息
				.then(res => {
						console.log(res)
						this.userInfo = res.result.data[0]
				})
				.catch(err => {
						console.log(err)
				})
		}
  },
}
</script>

<style lang="less" scoped>
.note{
  width: 100vw;
  height: calc(100vh - 120rpx);
  overflow-y: auto;
	white-space: pre-line;

}
</style>